﻿-- =========================================================================================================
-- Author:		MICHAEL RITACCO
-- Copyright:	2010 MEKHANO GROUP LLC
-- Version:		10/02/2010 1.0
-- =========================================================================================================
CREATE PROCEDURE [flcr].[api_device_platform_sel_lov]
@DEVICE_PLATFORM_ID INT = NULL
,@PLATFORM_NAME VARCHAR(100) = NULL
,@ACTIVE_FLG BIT = NULL

AS
BEGIN TRY
  
	SELECT	A.[DEVICE_PLATFORM_ID] A
			,A.[PLATFORM_NAME]
			,A.[MODEL_NAME] 
			,A.[MODEL_NUM] 
	  FROM	[FLCR].[DEVICE_PLATFORM] A
     WHERE	A.[DEVICE_PLATFORM_ID] = COALESCE(@DEVICE_PLATFORM_ID,A.[DEVICE_PLATFORM_ID])
	   AND	A.[PLATFORM_NAME] = COALESCE(@PLATFORM_NAME,A.[PLATFORM_NAME])
	   AND	A.[ACTIVE_FLG] = COALESCE(@ACTIVE_FLG,A.[ACTIVE_FLG])

END TRY
BEGIN CATCH
	EXEC [flcr].[utl_getDBError];
END CATCH
